package com.woniuxy.project.campus.canteen.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniuxy.project.campus.canteen.model.Region;
import com.woniuxy.project.campus.canteen.mapper.RegionMapper;
import com.woniuxy.project.campus.canteen.service.RegionService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 猫将军
 * @since 2025年02月17日
 */
@Service
public class RegionServiceImpl extends ServiceImpl<RegionMapper, Region> implements RegionService {

    @Resource
    private RegionMapper regionMapper;
    @Override
    public List<Region> getRegion() {
        QueryWrapper<Region> queryWrapper = new QueryWrapper<>();
        List<Region> regions = regionMapper.selectList(queryWrapper);
        return regions;
    }
}
